package com.hooya.fa.eu.biz.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hooya.fa.eu.api.bo.InvoiceBO;
import com.hooya.fa.eu.biz.dao.entity.ReconfigureInvoice;
import com.hooya.fa.eu.biz.dao.entity.dto.B2cDataDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 1
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2023/12/21
 * @Version 1.0.0
 */
@Mapper
public interface InvoiceMapper extends BaseMapper<ReconfigureInvoice> {

    /**
     * 获取b2b发票数据
     *
     * @param startDate
     * @param endDate
     * @param yesterday
     * @return
     */
    List<InvoiceBO> getB2bInvoiceBoListByDate(@Param("startDate") String startDate,
                                              @Param("endDate") String endDate, @Param("yesterday") String yesterday);

    /**
     * 获取转运发票数据
     *
     * @param startDate
     * @param endDate
     * @return
     */
    List<InvoiceBO> getZyInvoiceBoListByDate(@Param("startDate") String startDate, @Param("endDate") String endDate);

    List<B2cDataDTO> getB2cInvoiceData();

}
